import request from '@/utils/request'

// 查询列表
export function listGasmeter(query) {
  return request({
    url: '/system//metertype/list',
    method: 'get',
    params: query
  })
}

// 查询列表（不分页）
export function getGasmeterList(query) {
  return request({
    url: '/system//metertype/getlist',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getGasmeter(postId) {
  return request({
    url: '/system//metertype/' + postId,
    method: 'get'
  })
}

// 新增
export function addGasmeter(data) {
  return request({
    url: '/system//metertype',
    method: 'post',
    data: data
  })
}

// 修改
export function updateGasmeter(data) {
  return request({
    url: '/system//metertype',
    method: 'put',
    data: data
  })
}

// 删除
export function delGasmeter(postId) {
  return request({
    url: '/system//metertype/' + postId,
    method: 'delete'
  })
}
